﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Web.Mvc;

namespace DocumentTrackingSystem.Models
{
    public class DTSEntities : DbContext
    {
        public DTSEntities()
            : base("DTSContext")
        {
        }

        public DbSet<Office> Offices { get; set; }
        
    }
    public class Office
    {
        public Office()
        {
        }
        public long ID { get; set; }
        [Required]
        [DisplayName("Short Name")]
        [StringLength(20, ErrorMessage = "Maximum {2} characters exceeded")]
        public string ShortName { get; set; }
        [Required]
        [DisplayName("Name")]
        [StringLength(100, ErrorMessage = "Maximum {2} characters exceeded")]
        public string Name { get; set; }
    }
}